<?php use_javascript('jquery.pajinate.js') ?>
<div class="clear"></div>
<div id="list-comment">
	<div class="comment"><?php $i=0 ?>
<?php foreach($comment as $com) :?>
	<div class="message">
		<div class="auteur-message">
			<span class="auteur"><?php echo __('By ') ?></span><span class="auteur-name"><?php echo $com->getAuteur() ?></span>
			<span class="update-libelle"><?php echo __('The '); echo $com->getDateTimeObject('created_at')->format('d-m-Y'); echo __(' at '); echo $com->getDateTimeObject('created_at')->format('H:i') ?></span>
		</div>
		<div class="content-message"><?php echo $com->getContenuMsg()?></div>
	</div>
	<?php $i++ ?>
<?php endforeach;?>
	</div>
	<?php if($i > sfConfig::get('app_max_comment_page')){ ?>
	<div class="page_navigation"></div>
	<?php } ?>
</div>
<script type="text/javascript"><!--//--><![CDATA[//><!--
	$(document).ready(function(){
		$('#list-comment').pajinate({
			items_per_page : <?php echo sfConfig::get('app_max_comment_page')?>,
			num_page_links_to_display : 3,
			item_container_id : '.comment',
			nav_label_first : '<<',
			nav_label_last : '>>',
			nav_label_prev : '<',
			nav_label_next : '>'
		});
	});	
//--><!]]></script>